textview: Make GTK_TEXT_WINDOW_PRIVATE public
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 23 May 2017 04:12:41 +0000 (05:12 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 23 May 2017 05:41:18 +0000 (06:41 +0100)
commitb492db25a187994c6869ff99d89a335b63959aed
tree1e599745a3b27932a674989ead2e5865cdc6440e
parente5ed52b6c9e37622465e8f3ebb30e82c6fd362a1
textview: Make GTK_TEXT_WINDOW_PRIVATE public

The GTK_TEXT_WINDOW_PRIVATE enumeration value is really *not* private.
Internally, it's used as a simple "invalid value" marker, and
application and library developers are supposed to use it as such in
their own code.

Let's just document it, and since the GtkTextView documentation and
internals go a long way to state the fact that it should not be used as
an argument value, let's add some pre-condition checks as well.

This commit fixes GtkSourceView's use of GTK_TEXT_WINDOW_PRIVATE as
default value for a GObject property that was broken by the change in
glib-mkenums to honor the `/*< public >*/` and `/*< private >*/`
trigraphs.
gtk/gtktextview.c
gtk/gtktextview.h